<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/WEB-INF/jstl/c.tld" prefix="c"%>
<%@ taglib uri="/WEB-INF/jstl/fn.tld" prefix="fn"%>
<%@ taglib uri="/WEB-INF/jstl/fmt.tld" prefix="fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<html lang="zh-CN">
<head>
<base href="<%=basePath%>">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>商品修改</title>

<link rel="stylesheet" type="text/css"
	href="<%=basePath%>assets/bootstrap/css/resetPro.css">
<link
	href="<%=basePath%>assets/bootstrap/css/bootstrap-combined.min.css"
	rel="stylesheet">
<script type="text/javascript"
	src="<%=basePath%>assets/bootstrap/js/jquery-2.0.0.min.js"></script>
<script type="text/javascript"
	src="<%=basePath%>assets/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript"
	src="<%=basePath%>assets/bootstrap/js/jquery-ui.js"></script>
<script type="text/javascript"
	src="<%=basePath%>assets/bootstrap/js/jquery.ui.touch-punch.min.js"></script>
<script type="text/javascript"
	src="<%=basePath%>assets/bootstrap/js/jquery.htmlClean.js"></script>
<script type="text/javascript"
	src="<%=basePath%>assets/bootstrap/ckeditor/ckeditor.js"></script>
<script type="text/javascript"
	src="<%=basePath%>assets/bootstrap/ckeditor/config.js"></script>
<link rel="stylesheet" type="text/css"
	href="<%=basePath%>assets/bootstrap/Font-Awesome-3.2.1/css/font-awesome.min.css">
<link rel="stylesheet"
	href="<%=basePath%>assets/onedate/css/BeatPicker.min.css" />
<script src="<%=basePath%>assets/onedate/js/BeatPicker.min.js"></script>
<script src="<%=basePath%>assets/onedate/documents/js/prism.js"></script>

<style type="text/css">
a:hover {
	text-decoration: none !important;
}

.pzSpanClass {
	margin: 0 15px;
}

.pzClass {
	width: 55px;
	height: 25px;
}

.cheSpan {
	display: inline-block !important;
	min-width: 25px;
}

.keyinput {
	margin-bottom: 0px !important;
	height: 30px !important;
}

.datatable th,.datatable td {
	text-align: center !important;
	vertical-align: middle !important;
}

.foottable {
	border-top-width: 0px !important;
	margin-top: -21px !important;
}

.oneinput {
	margin-bottom: 0px !important;
	height: 30px !important;
}

.onediv {
	width: 320px;
	margin: 0px auto;
	margin-top: 22px;
}

.inoneline {
	display: inline-block !important;
}
</style>
</head>
<body>
	<div class="container-fluid">
		<div class="row-fluid">
			<div class="span12">

				<!-- 页面信息 -->
				<c:choose>
					<c:when test="${empty indexinfo }">
						<div class="alert">
							<button type="button" class="close" data-dismiss="alert">×</button>
							<h4>信息!</h4>
							<strong>(～￣▽￣)～*!</strong> 这里是商品组信息修改页面[通过修改状态实现删除].
						</div>
					</c:when>
					<c:otherwise>
						<div class="alert ${indexinfo.type}">
							<button type="button" class="close" data-dismiss="alert">×</button>
							<h4>${indexinfo.title}!</h4>
							<strong>${indexinfo.emoji}!</strong> ${indexinfo.msg}.
						</div>
					</c:otherwise>
				</c:choose>

				<div class="onediv">
					<h3 class="form-signin-heading text-center">
						修改商品组信息<span class="glyphicon glyphicon-user"></span>
					</h3>
					<form class="form-signin" action="<%=basePath%>goodsGroup/edit"
						method="post">
						<div class="control-group">
							<span class="z5"> 商品组编号</span> <input type="text" name="id"
								class="oneinput" value="${oneGoodsGroup.id}" readonly="readonly"
								title="数据库中编号ID" required autofocus>
						</div>
						<div class="control-group">
							<span class="z5">商品组名称</span> <input type="text" name="name"
								class="oneinput" placeholder="名称" value="${oneGoodsGroup.name}"
								required autofocus>
						</div>
						<div class="control-group">
							<span class="z5">商品组类型</span> <select name="type">
								<option value="1" <c:if test="${1 eq oneGoodsGroup.state}">selected="selected"</c:if> >普通分类</option>
								<option value="2" <c:if test="${2 eq oneGoodsGroup.state}">selected="selected"</c:if> >汽车分类</option>
							</select>
						</div>
						<div class="control-group">
							<span class="z5">商品组状态</span> <select name="state">
								<option value="0" <c:if test="${0 eq oneGoodsGroup.state}">selected="selected"</c:if> >停用</option>
								<option value="1" <c:if test="${1 eq oneGoodsGroup.state}">selected="selected"</c:if> >正常</option>
							</select>
						</div>
						<div class="control-group">
							<span class="z5">商品组简介</span>
							<textarea name="desc" placeholder="简介" required autofocus>${oneGoodsGroup.desc}</textarea>
						</div>
						<button class="btn btn-large btn-success  btn-block" type="submit">确认修改</button>
					</form>
				</div>
			</div>
		</div>
</body>
</html>
